import { Controller, Post, UseGuards } from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
import { ApiOperation, ApiSecurity, ApiTags } from '@nestjs/swagger';

@ApiSecurity('Authorization')
@ApiTags('系统码表管理')
@Controller('/api/syscode')
export class SysCodeController {
  @UseGuards(AuthGuard('jwt'))
  @ApiOperation({ summary: '添加码表数据' })
  @Post('addSysCode')
  async addSysCode() {}

  @UseGuards(AuthGuard('jwt'))
  @ApiOperation({ summary: '获取特定码表' })
  @Post('getSysCode/:codeName')
  async getSysCode() {}

  @UseGuards(AuthGuard('jwt'))
  @ApiOperation({ summary: '根据父级查询子集码表（根据code,key值查询）' })
  @Post('queryChildCodeByCodeKey')
  async queryChildCodeByCodeKey() {}

  @UseGuards(AuthGuard('jwt'))
  @ApiOperation({ summary: '查询详细数据' })
  @Post('queryDetail/:id')
  async queryDetail() {}

  @UseGuards(AuthGuard('jwt'))
  @ApiOperation({ summary: '查询列表' })
  @Post('queryForList')
  async queryForList() {}

  @UseGuards(AuthGuard('jwt'))
  @ApiOperation({ summary: '查询码表' })
  @Post('querySysCodeString')
  async querySysCodeString() {}

  @UseGuards(AuthGuard('jwt'))
  @ApiOperation({ summary: '删除数据' })
  @Post('removeDetail/:id')
  async removeDetail() {}

  @UseGuards(AuthGuard('jwt'))
  @ApiOperation({ summary: '保存' })
  @Post('save')
  async save() {}
}
